<?php
namespace app\admin\model;
use think\Db;

class Login
{
    public function getAdminByUsername($username)
    {
		$res = Db::query("SELECT * FROM `admin` WHERE `username` = '{$username}'");
		return $res;
    }
}
